FROM docker.io/alpine:latest
MAINTAINER "zjs" <zjsonly@gmail.com>
RUN sed -i "s/http:\/\/dl-cdn.alpinelinux.org/http:\/\/mirrors.aliyun.com/g" /etc/apk/repositories
RUN apk -U upgrade && \
    apk update && \
    apk add --no-cache php7 php7-fpm php7-curl php7-pdo php7-opcache php7-json php7-gd php7-mysqli php7-mysqlnd php7-cli php7-xml php7-xmlrpc php7-zip php7-mbstring php7-redis php7-iconv && \
    apk add --no-cache tzdata
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]
